import request from '@/utils/request'
let service_module="/payment-cloud-order"
export function listMember(data) {
  return request({
    url: `/api/user/queryPage?current=${data.current}&size=${data.size}`,
    method: 'post',
    data,
    service_module,
  })
}

export function createMember(data) {
  return request({
    url: '/api/user/registered',
    method: 'post',
    data,
    service_module,
  })
}

export function updateMember(data) {
  return request({
    url: '/api/user/edit',
    method: 'post',
    data,
    service_module,
  })
}
export function updatePws(data) {
  return request({
    url: '/api/user/updatePws',
    method: 'post',
    data,
    service_module,
  })
}

export function deleteMember(query) {
  return request({
    url: `/api/user/delUser`,
    method: 'get',
    params:query,
    service_module,
  })
}
